package blog.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;
import java.util.Set;

@Data
@TableName("chapter")
public class Chapter implements Serializable{


    @TableId(type = IdType.AUTO, value = "id")
	private Integer id;
    
    @TableField("title")
	private String title;
    
    @TableField("content")
	private String content;

    @TableField("img_url")
	private String imgUrl;

    @TableField("gmt_create")
	private Integer gmtCreate;
    
    @TableField("gmt_update")
	private Integer gmtUpdate;

    @TableField("isuse")
	private Integer isuse;

    @TableField("serial")
    private Integer serial;

    @TableField(exist = false)
    private ChapterRecord record;

    @TableField(exist = false)
    private List<ChapterLabel> labelList;

    @TableField(exist = false)
    private List<ChapterCategory> categoryList;

    @TableField(exist = false)
    private ChapterCategory category;

    @TableField(exist = false)
    private List<ChapterComment> commentList;

    @TableField(exist = false)
    private List<Integer> labelIdList;

    @TableField(exist = false)
    private List<Integer> categoryIdList;

    @TableField(exist = false)
    private Integer categoryId;
}
